<!--
  描述：产品组列表页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>产品组列表</title>
</head>
<body>

<div class="layui-fluid">

    <!--面包屑-->
    <blockquote class="layui-crumb">
        后台产品>
        <a lay-href="/product/productgroup/list.action" lay-text="产品组" th:text="产品组">产品组</a>
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" class="layui-form"  action="/product/productgroup/list.action" id="product_group_list">
            <div class="layui-form" th:include="product/productgroup/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="product/productgroup/_table::table"/>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group" th:if="${#authPermit.checkPermit('/product/productgroup/updateStatus.action')}">
                        <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                        <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/product/productgroup/addEditView.action')}">
                            <a href="#" onclick="toaddProductGroup()" class="layui-btn layui-btn-sm layui-btn-primary"
                               lay-text="新增产品组" text="新增产品组">+新增</a>
                        </zmn>
                    </div>
                </div>


            </script>
        </div>

    </div>
</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasExportExcel: [[${#authPermit.checkPermit('/product/productgroup/outputExcel.action')}]],
        hasServCategAss: [[${#authPermit.checkPermit('/serv/categ/ass/list.action')}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/",
        version : "202010201426"
    }).extend({
        index: "lib/index",
        plat_productgroup_list: "product/productgroup/zmn.plat.productgroup.list",
    }).use(['index', 'plat_productgroup_list']);

</script>
</body>
</html>